
<?php
 use_helper('Flash');  
  if($baner)
  {
  if($type=="flash")
  {
  $params = array ('id' => 'flash_movie', 'movie' => 'baner/'.$baner->getFilePath (), 'size' => $baner->getWidth().'x'.$baner->getHeight(), 'version' => '8', 'background_color' => '', 'params' => array ('wmode'=> 'transparent','allowScriptAccess' => 'sameDomain', 'quality' => 'high' ), 'create_proxy' => false );
					
  echo  flash_object ( 'nameflash'.$baner->getId(), $params );
  }
  else 
  {
    echo '<a target=_blank href="http://'.$baner->getUrl().'">'.image_tag('/uploads/baner/'.$baner->getFilePath(),'title="'.$baner->getTitle().'"').'</a>';
  }
  }
?>